package com.dream.dao;

import com.dream.pojo.VisitInformation;

import java.util.List;

public interface VisitInformationDao {
    /**
     * 查询条数
     * @param stuName
     * @param dormitoryId
     * @return
     */
    long totalCount(String stuName,Long dormitoryId);

    /**
     * 查询每页的数据
     * @param stuName
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<VisitInformation> list(String stuName, Long dormitoryId, long pageIndex, long pageSize);
}

